{include file="public/header" /}
<body>
<div class="x-body layui-anim">
    <form class="layui-form" id="form" action="{:url('deliver')}">
        <input type="hidden" name="id" value="{$info->id}"/>
        <fieldset class="layui-elem-field layui-field-title">
            <legend>收货信息</legend>
        </fieldset>

        <div class="layui-form-item">
            <label class="layui-form-label">收货人 </label>
            <div class="layui-input-inline">
                <input type="text" value="{$info->receiver}" name="receiver" lay-verify="required" lay-reqtext="请填写收货人" placeholder="请填写收货人"  class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">收货电话 </label>
            <div class="layui-input-inline">
                <input type="text" value="{$info->receiver_tel}" name="receiver_tel" lay-verify="required" lay-reqtext="请填写收货电话" placeholder="请填写收货电话" class="layui-input"/>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">收货地址 </label>

            <div class="layui-inline sunSelect" data-url="{:url('order/getArea')}" data-value="code" data-name="title">
                <div class="layui-input-inline">
                    <select name="province" data-name="省" data-level="1" data-id="{$info.province}" lay-filter="sunSelect"></select>
                </div>
                <div class="layui-input-inline">
                    <select name="city" data-name="市" data-level="2" data-id="{$info.city}" lay-filter="sunSelect"></select>
                </div>
                <div class="layui-input-inline">
                    <select name="district" data-name="区/县" data-level="3" data-id="{$info.district}" lay-filter="sunSelect"></select>
                </div>
                <div class="layui-input-inline">
                    <select name="town" data-name="街道" data-level="4" data-id="{$info.town}" lay-filter="sunSelect"></select>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">详细地址 </label>
            <div class="layui-input-block">
                <input type="text" value="{$info->address_details}" name="address_details" lay-verify="required" lay-reqtext="请填写详细地址" placeholder="请填写详细地址" class="layui-input"/>
            </div>
        </div>

        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>发货信息</legend>
        </fieldset>
        <div class="layui-form-item">
            <label class="layui-form-label">订单商品</label>
            <div class="layui-input-inline" style="width: 80%;">
                <table class="layui-table layui-form" style="margin: 0px;">
                    <thead>
                    <tr>
                        <th>商品名称</th>
                        <th>缩略图</th>
                        <th>单价</th>
                        <th>规格</th>
                        <th>数量</th>
                        <th><input type="checkbox" lay-filter="list_all" lay-skin="primary"/></th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="$products" item="v"}
                    <tr class="data_line">
                        <td>{$v.title}</td>
                        <td><a href="{$v.icon}" target="_blank"><img src="{$v.icon}" style="width: 30px"/></a></td>
                        <td>{$v.vip_price}</td>
                        <td>{$v.sku_name}</td>
                        <td>{$v.num}</td>
                        <td><input name="product_ids[]" type="checkbox" lay-verify="required" lay-filter="list_checkbox" lay-skin="primary" value="{$v.pid}"/></td>
                    </tr>
                    {/foreach}
                    </tbody>

                </table>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="express_id" class="layui-form-label">快递公司</label>
            <div class="layui-input-inline">
                <select  name="express_id" id="express_id" lay-filter="express_id" style="max-height: 100px;">
                    <option value="0">请选择</option>
                    {volist name="express" id="vo"}
                    <option value="{$vo.id}">{$vo.title}</option>
                    {/volist}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">快递单号 </label>
            <div class="layui-input-block">
                <input type="text" value="" name="express_code" lay-verify="required" lay-reqtext="请填写快递单号" placeholder="请填写快递单号" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注 </label>
            <div class="layui-input-block">
                <input type="text" value="" name="post_remark"  placeholder="备注" class="layui-input"/>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <button class="layui-btn" lay-filter="save" lay-submit formObj="#form">
                发货
            </button>
        </div>
    </form>
</div>
</body>
{include file="public/footer" /}
</html>